import React, { Component } from 'react'
import { Route, Switch, NavLink, BrowserRouter,Redirect } from 'react-router-dom'
import RouterList  from '../router/RouterList' //导入了一个数组
import RouterView from '../router/routerView'
export class App extends Component {
  render() {
    return (
      <div className='zong'>
        <BrowserRouter>
            {/* 给routerview组件传了一个名字为RouterList的参数，参数的值为RouterList这个数组 */}
            <RouterView RouterList={RouterList}></RouterView>
             {/* route  my/}
           {/* route all* */}
           {/* Redirect  / /all*/}
        </BrowserRouter>
        
      </div>
    )
  }
}

export default App